#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
	double n, m;
	cin >> n >> m;
	printf("%.2lf\n", fabs(n - m));
	return 0;
}
